﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Aioms.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("inspection_line")]
    public class InspectionLine
    {
        public InspectionLine()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// Desc:企业id
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "eid")]
        public long Eid { get; set; }

        /// <summary>
        /// Desc:路线名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Desc:巡检点连线
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "line")]
        public string Line { get; set; }

        /// <summary>
        /// Desc:排序id
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "sort_id")]
        public long SortId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "created")]
        public DateTime? Created { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "updated")]
        public DateTime? Updated { get; set; }

        /// <summary>
        /// 软删除标记：1.删除 0.未删除
        /// </summary>           
        [SugarColumn(ColumnName = "isdel")]
        public int IsDel { get; set; } = 0;

        /// <summary>
        /// 路线
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<InspectionPoint> InspectionPoints { get; set; }

    }
}
